#!/bin/bash

#this file is used to create some customized environment variables



__workspace_path_alias_config(){


    alias cdcre="cd $HOME/ROWorkspace/rosys-core"
    alias cdcmn="cd $HOME/ROWorkspace/ro-commons"
    alias cdrob="cd $HOME/ROWorkspace/robots"
    alias cdjboss="cd $HOME/workspace/jboss/jboss-4.2.2.GA/bin"

    export cdcre
    export cdcmn
    export cdrob
    export cdjboss
}

__git_path_alias_config(){

    if [[ -z ${SYSTEM_GIT_HOME} ]]; then
        export SYSTEM_GIT_HOME="$HOME/gitworkspace"
    fi

    alias cddot="cd ${SYSTEM_GIT_HOME}/.dotfiles"
    alias cdnote="cd ${SYSTEM_GIT_HOME}/.notes"
    alias cdgdoc="cd ${SYSTEM_GIT_HOME}/.doc"

    export cddot
    export cdnote
    export cdgdoc
}
__python_path_alias_config(){

    alias cd2py="cd $HOME/pythonworkspace/python2"
    alias cd3py="cd $HOME/pythonworkspace/python3"
    
    export cd2py
    export cd3py
}

__vim_color_env_var_config(){
    if [[ ${vcolor:-none} == "none" ]]; then
        vcolor="pyte"
        export vcolor
    else 
        return
        #echo "vim color is $vcolor"
    fi

    if [[ ${vgcolor:-none} == "none" ]]; then
        vgcolor="pyte"
        export vgcolor

    else
        return 
        #echo "gvim color is $vgcolor!"
    fi
}





local_path_alias_config(){
    __workspace_path_alias_config
    __git_path_alias_config
    __python_path_alias_config
}


##
local_path_alias_config
__vim_color_env_var_config




